//
//  MoveMenuView.h
//  MoveBtn
//
//  Created by limaohuyu on 2020/9/24.
//

#import <UIKit/UIKit.h>


@class MoveMenuAction;
NS_ASSUME_NONNULL_BEGIN

@interface MoveMenuView : UIView

+(instancetype)showSupView:(UIView *)supView locationInSupView:(CGPoint)pointLocation actions:(NSArray<MoveMenuAction*>*)actions;

//背景颜色，默认透明
@property (nonatomic,strong) UIColor  * menuBgColor ;

//背景图片
@property (nonatomic,strong) UIImage  * menuBgImage ;
@end


@interface MoveMenuAction : NSObject

+(instancetype)actionWithTitle:(NSString *)title image:(nullable UIImage*)image handler:(void (^)(void ))handler;

+(instancetype)actionWithItemHandler:(UIButton * (^)(void))itemHandler;

@property (nonatomic,copy) void(^handler)(void);

@end

NS_ASSUME_NONNULL_END
